//更改系统默认弹窗
	window.alert = function(str)
	{
		var shield = document.createElement("DIV");
		shield.id = "shield";
		shield.style.position = "absolute";
		shield.style.left = "50%";
		shield.style.top = "50%";
		shield.style.width = "280px";
		shield.style.height = "150px";
		shield.style.marginLeft = "-140px";
		shield.style.marginTop = "-110px";
		shield.style.zIndex = "25";
		var alertFram = document.createElement("DIV");
		alertFram.id="alertFram";
		alertFram.style.position = "absolute";
		alertFram.style.width = "280px";
		alertFram.style.height = "150px";
		alertFram.style.left = "50%";
		alertFram.style.top = "50%";
		alertFram.style.marginLeft = "-140px";
		alertFram.style.marginTop = "-110px";
		alertFram.style.textAlign = "center";
		alertFram.style.lineHeight = "150px";
		alertFram.style.zIndex = "20000000";
		strHtml = "<ul style=\"background:rgba(0,0,0,0.7);list-style:none;margin:0px;padding:0px;width:100%;border-radius:10px;z-index:99999999;position:absolute;\">\n";
		strHtml += " <li style=\"text-align:center;font-size:14px;padding:20px 10px; line-height:30px;color:#FFF;\">"+str+"</li>\n";
		strHtml += " <li style=\"text-align:center;font-weight:bold;height:40px;line-height:40px; padding-bottom:10px;\"><input type=\"button\" value=\"确 定\" onclick=\"doOk()\" style=\"width:80px;height:30px;background:#6dd8cd;color:white;border:none;font-size:14px;line-height:30px;outline:none;border-radius:5px;\"/></li>\n";
		strHtml += "</ul>\n";
		alertFram.innerHTML = strHtml;
		document.body.appendChild(alertFram);
		document.body.appendChild(shield);
		this.doOk = function(){
			alertFram.style.display = "none";
			shield.style.display = "none";
		};
		alertFram.focus();
		document.body.onselectstart = function(){return false;};
	};

//大转盘
function pastTurntable(){
	layer.closeAll();
	layer.open({
		type:1, area:'944px',
		title: '', content: $("#pastTurntableLayer"),
		skin:"pastTurntableDialog", shade:0.3
//                end:pastSuccess
	});
}
//奖品说明
function PrizeNote(){
	layer.closeAll();
	layer.open({
		type:1, area:'714px',
		title: '', content: $("#PrizeNoteLayer"),
		skin:"PrizeNoteDialog", shade:0.3,
		end:pastTurntable
	});
}
//我的奖品
function MyPrize(){
	layer.closeAll();
	layer.open({
		type:1, area:'944px',
		title: '', content: $("#MyPrizeLayer"),
		skin:"MyPrizeDialog", shade:0.3,
		end:pastTurntable
	});
}